
<template>
  <div id="con">
    <button @click="getlist">点我发请求</button>
    <button @click="getImg">点我获取图片</button>
    <button @click="getmyreq">点我发送</button>
  </div>
</template>

<script>
    export default {
        data() {
            return {

            }
        },
        methods: {
            async getlist() {
                let result = await this.$axios.get('/userlist')
                console.log(result)
            },
            async getImg() {
                let result = await this.$axios.get('/getImage')
                console.log(result)
            },
            async getmyreq() {
                let result = await this.$myInstance.get('/my')

                alert(result.data)
            }
        },
        mounted() {

        }
    }


</script>